home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / lib / posix / getppid.c < prev    next >
C/C++ Source or Header  |  1990-07-21  |  159b  |  11 lines

  1. #include <lib.h>
  2.  
  3. PUBLIC int getppid()
  4. {
  5.   int p;
  6.  
  7.   p = callm1(MM, GETPID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  8.   if (p < 0) return(p);
  9.   return(_M.m2_i1);
  10. }
  11.